home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / net3d-0.08 / protos.h < prev    next >
C/C++ Source or Header  |  1995-06-22  |  4KB  |  125 lines

  1. /* protos.h
  2.  *
  3.  * Functions prototypes from everywhere
  4.  */
  5.  
  6. #ifndef protos_h
  7. #define protos_h
  8.  
  9. /* from matrix.c */
  10. #if (!defined(__GNUC__) || USEINLINES != 1)
  11. void mmult(struct point *, float [3][3], struct point *);
  12. float cmult(struct point *, float [3]);
  13. #endif
  14. float dotprod(struct point *, struct point *);
  15. void smult(float, struct point *);
  16. void normalise(struct point *);
  17.  
  18. /* from view.c */
  19. void init3d(struct map *, struct view *);
  20. void initmightsaves(struct object *);
  21. void render(struct view *, struct object *, struct vehicle *, int, 
  22.  struct map *);
  23. void worldtoview(struct view *, struct object *, struct vehicle *, int);
  24. struct object *depthsort(struct object *, struct view *);
  25. void initX(struct map *, int, char **);
  26. long sqr(long);
  27. void cyclefire(double);
  28. void drawextras(struct vehicle *, bool);
  29. void drawradar(struct vehicle *, struct vehicle *);
  30. void drawinfo(struct vehicle *);
  31. void drawvmode(int, struct vehicle *);
  32. void fadecolour(int, int, int, int, int, int, int, XColor *);
  33. void readicons(void);
  34. void drawbuildicons(void);
  35. void drawstars(struct map *, struct view *);
  36.  
  37. /* from file.c */
  38. void fileerror(char *, char *, int);
  39. void ntoken(int, char *);
  40. void *dupe(void *, int);
  41. char *strdupe(char *);
  42. void readfile(struct object **, struct vehicle **, int, struct map *);
  43. void readpoints(struct object *, int);
  44. void readface(struct object *, int);
  45. void copyvehicle(struct vehicle *, struct vehicle *, struct object **);
  46. struct vehicle *findbycode(struct vehicle *, char *);
  47. void readrotate(struct object *, int);
  48. void readscale(struct object *, int);
  49. void readspin(struct vehicle *, int);
  50. int pipethrough(char *, char *);
  51. void readmax(struct vehicle *, int);
  52. void createstars(struct map *, int);
  53. void readvehiclescale(struct vehicle *, int);
  54.  
  55. /* from object.c */
  56. void worldinfo(struct vehicle *, struct object *);
  57. void dumpvehicles(struct vehicle *);
  58. void movevehicle(struct vehicle *, double, struct map *);
  59. void movevehicles(struct vehicle **, struct object **, struct map *, double);
  60. void rotatey(struct object *, double);
  61. void rotatex(struct object *, double);
  62. void rotatez(struct object *, double);
  63. void multpoints(struct object *, float [3][3]);
  64. double gametime(void);
  65. void makemap(struct object **, struct map *);
  66. struct object *addobject(struct object **, struct point, struct point,
  67.  struct vehicle *, int, int, struct point *, struct polygon *);
  68. float calcmap(int, int, struct map *);
  69. void explode(struct vehicle **, struct object **, struct vehicle *);
  70. void freevehicle(struct vehicle *, struct vehicle **, struct object **);
  71. void calcbbox(struct vehicle *);
  72. void calcbboxes(struct vehicle *);
  73. void shiftvehicle(struct vehicle *, float, float, float);
  74. void fire(struct vehicle **, struct object **, struct vehicle *);
  75. double dabs(double);
  76. double sinsq(double);
  77. double sinhalf(double);
  78. void readextravehicles(void);
  79. void eject(struct vehicle **, struct object **, struct vehicle *);
  80. bool enteredvehicle(struct vehicle *, struct vehicle *);
  81. void rotatevehicle(struct vehicle *, double);
  82. float vehicledist(struct vehicle *, struct vehicle *);
  83. double heightdiff(struct vehicle *, struct vehicle *);
  84.  
  85. /* from game.c */
  86. void createcamera(struct vehicle *, struct view *, int, struct map *,
  87.  struct vehicle *);
  88. void readkeys(int *, struct vehicle *, struct vehicle *, double);
  89. void printcontrols(void);
  90. double readnet(struct vehicle **, struct object **, bool *, int *);
  91. void controlvehicles(struct vehicle **, struct object **);
  92. double vehicleangle(struct vehicle *, struct vehicle *);
  93. void readkeyfile(FILE *);
  94. char *keyname(int);
  95. bool possibletarget(struct vehicle *, struct vehicle *);
  96. void growtrees(struct vehicle **, struct object **);
  97. void build(struct vehicle **, struct object **, struct vehicle *, int);
  98. bool boring(struct vehicle *);
  99. void termhandler(int);
  100. int xerrorhandler(Display *);
  101. void deadloop(void);
  102.  
  103. /* from command.c */
  104. void waitforclients(int [], int);
  105. void processnet(int [], int, int);
  106.  
  107. /* for util.c */
  108. struct vehicle *collide(struct vehicle *, struct vehicle *);
  109. struct vehicle *findbyvid(struct vehicle *, int);
  110. void initcaches(void);
  111. double jsin(double);
  112. #define jcos(x) jsin((x)+dtor(90))
  113. struct object *findturret(struct vehicle *);
  114. void addpts(struct point, struct point, struct point *);
  115. #ifdef NO_STRERROR
  116. char *strerror(int);
  117. #endif
  118.  
  119. /* from brain.c */
  120. void readbrain(struct vehicle *, int);
  121. void think(struct vehicle *, struct vehicle **, struct object **);
  122.  
  123. #endif
  124.  
  125.